using Microsoft.AspNetCore.Mvc;
using Project_Schedule.Domain.BackGround.com.core.Interface;
using Project_Schedule.Domain.Request;

namespace Project_Schedule.Domain.BackGround.com.core.Controller;

[ApiController]
[Route("api/[controller]/[action]")]
public class BackgroundAuditWebUserController : ControllerBase
{
    private readonly IBackgroundAuditSchUser _backgroundAudit;

    public BackgroundAuditWebUserController(IBackgroundAuditSchUser backgroundAudit)
    {
        _backgroundAudit = backgroundAudit;
    }

    [HttpGet]
    public async Task<JRequest> AuditWebUsers(int page) =>
        await _backgroundAudit.AuditSchUserStatus(page);

    [HttpGet]
    public async Task<JRequest> DelAuditRefuse(string account) =>
        await _backgroundAudit.DelRefuseUser(account);
}